package blog.service;

import blog.pojo.Chapter;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.io.EOFException;
import java.util.List;

public interface ChapterService {
    List<Chapter> getIndexCommendList() throws Exception;

    Page<Chapter> getPage(Integer page, Integer limit, Integer categoryId, Integer labelId)  throws Exception;

    Page<Chapter> getPage(Page page, Chapter chapter, String keywords)  throws Exception;

    Chapter getInfo(Integer id) throws Exception;

    Boolean update(Chapter chapter) throws Exception;

    Integer insertGetId(Chapter chapter) throws Exception;

    Integer selectCountByCategoryId(Integer category_id) throws Exception;
}
